import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
import { store, persistor } from './store/index.js';

// 引入国际化
import './language/i18n.ts'

// 导入redux-persist提供PersistGate组件
import { PersistGate } from 'redux-persist/integration/react';
import { Provider } from 'react-redux'

createRoot(document.getElementById('root')!).render(
  <Provider store={store}>
      <PersistGate loading={null} persistor={persistor}>
				<App />
      </PersistGate>
    </Provider>
)
